﻿{% extends "diary/base.html" %}
{% load diary_tags %}
{% block content %}
<body class="home blog site-layout-2">
    <div id="main-container" class="container clearfix">
        <section class="post-left">
            <!-- /最新日志 -->
            <div class="index-main clearfix">
                <div class="main-title">
                    <h4 class="post-left-title fl">最新日志</h4>
                    <div class="fr"></div>
                </div>
                <div class="row">
                    {% for log in latestlogs %} 
                        <div class="article-box clearfix excerpt-1">
                            <div class="col-md-4">
                                <div class="thumbnail">
                                    <a href="{% url "diary:index" %}show-{{ log.id }}.html" title="{{ log.title }}">
                                        <img src="/media/{{ log.img }}"
                                             srcset="/media/{{ log.img }}"
                                             alt="{{ log.title }}" class="wp-post-image" width="240" height="160"/></a>
                                </div>
                            </div>
                            <div class="col-md-8">
                                <h2><a href="{% url "diary:index" %}show-{{ log.id }}.html" target="_blank" title="{{ log.title }}">{{ log.title }}</a></h2>
                                <p class="txtcont hidden-xs"><a href="{% url 'diary:index' %}show-{{ log.id }}.html" target="_blank"
                                                   title="{{ log.excerpt }}">{{ log.excerpt }}</a></p>
                                <div class="meta"><span class="label label-info"><a
                                                        href="{% url "diary:index" %}list-{{ log.category.id }}.html">{{ log.category }}</a></span>
                                    <time class="item"><i class="fa fa-clock-o"></i>{{ log.date|date:"Y年m月d日 周w"|weekchinese }}
                                    </time>
                                </div>
                            </div>
                        </div>
                    {% endfor %} 
                </div>
                <!-- /最新日志 -->
        </section>
        {% include "diary/right.html" %}
    </div>
{% endblock %}
